<template>
    <div class="main-page">
        <el-form :model="childForm" label-width="70px" ref="addstuform"
                 size="mini">
            <el-row type="flex" justify="center">
                <el-col :span="8">
                    <el-form-item label="选择老师">
                        <el-select size="mini" class="search-input" v-model="formData.schoolid"
                                   placeholder="请选择老师">
                            <el-option value="" label="全部"></el-option>
                        </el-select>
                    </el-form-item>
                </el-col>
                <el-col :span="8">
                    <el-form-item label="开始结束日期">
                        <el-date-picker style="width: 220px"
                                        v-model="formData.endTime"
                                        align="right"
                                        type="date"
                                        value-format="timestamp"
                                        placeholder="结束日期"
                        >
                        </el-date-picker>
                    </el-form-item>
                </el-col>
            </el-row>
        </el-form>
        <div class="table_container">

            <el-table
                v-loading="loading"
                :data="tableData"
                highlight-current-row
                ref="multipleTable"
                @selection-change="handleSelectionChange"
            >
                <el-table-column
                    type="selection"
                    width="55">
                </el-table-column>
                <el-table-column
                    property="uid"
                    label="日期"
                    min-width="10%">
                </el-table-column>
                <el-table-column
                    property="uid"
                    label="时间"
                    min-width="10%">
                </el-table-column>
                <el-table-column
                    property="uid"
                    label="老师"
                    min-width="10%">
                </el-table-column>
                <el-table-column
                    property="uid"
                    label="课程"
                    min-width="10%">
                </el-table-column>
                <el-table-column
                    property="uid"
                    label="教室"
                    min-width="10%">
                </el-table-column>
                <el-table-column
                    property="uid"
                    label="上线人数"
                    min-width="10%">
                </el-table-column>

            </el-table>
        </div>
    </div>
</template>

<script>
    import {mapActions, mapState, mapGetters} from 'vuex'
    import headTop from '../../components/headTop'
    import {userList} from '@/api/getData'
    import ElInput from "../../../node_modules/element-ui/packages/input/src/input.vue";
    import ElOption from "../../../node_modules/element-ui/packages/select/src/option.vue";

    export default {
        name: 'addSubject',
        props: {},
        data() {
            return {
                childForm: {}
            }
        },
        components: {
            ElOption,
            ElInput,
            headTop,

        },
        computed: {
            ...mapGetters(['adminInfo'])
        },
        created() {
        },
        mounted() {

        },
        methods: {
            ...mapActions(['getPeriod']),
            handleSelectionChange(val) {
                this.multipleSelection = val;
            }
        },
    }
</script>
<style lang="less">
    @import '../../style/mixin';

    .el-table .sks {
        background: #c2e7b0;
    }
</style>
